import { Entity, PrimaryGeneratedColumn, Column, Unique } from 'typeorm';

@Entity()
@Unique(['userId', 'gname'])
@Unique(['userId', 'gid'])
export class DeviceGroup {
  @PrimaryGeneratedColumn('uuid')
  gid!: string;

  @Column()
  userId!: string;

  @Column()
  gname!: string;
}
